package com.huawei;

import java.util.Scanner;

public class HJ004 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String inputStr = scanner.nextLine();

        //空串不处理
        if("".equals(inputStr)){
            return ;
        }
        //余数
        int remainder = inputStr.length()%8;
        if(remainder!= 0){
            //需要补几个0
            int lack = 8 - remainder;
            while(lack!=0){
                inputStr += "0";
                --lack;
            }
        }


        int modifyLength = inputStr.length();
        int prev = 1;
        int last = 8;
        while(last<=modifyLength){
            //substring(0,8)会取前8位
            //这一块有人用stringBuilder的delete方法能少写一些代码
            System.out.println(inputStr.substring(prev - 1, last));
            prev += 8;
            last += 8;
        }
    }
}
